<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<div class="row">
	<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12 text-right">
		<t-auth:roleButton />
	</div>
</div>
<script type="text/javascript">
function addData(){
	
	var standardId=$("#standardId").val();
	//alert(customerId);
	top.openModal("/cargo/property/detailed?standardId="+standardId+"&type="+"add","property_form","规格值详情-添加",450,185);
}

function editData(){
	var id=getKeyId();
	if(isEditor(id)){
		top.openModal("/cargo/property/detailed?key="+id,"property_form","规格值详情-修改",450,185);
	}
}

function selData(){
	var key=getKeyId();
	if(isEditor(key)){
		top.openModal("/cargo/property/detailed?key="+key+"&type="+"check","property_form","规格值详情-查看",450,185);
	
	}
}

function deleteData(){
	 var id=getKeyId();
	 if (isEditor(id)) {
		 var url = $.getVirtualPath()+"/cargo/property/delete?key="+id;
		 deleteDataEx(url, searchCallback);
    } 
}

function exportData(){
	var url=$.getVirtualPath()+"/cargo/property/exportExcel";
	var data=$("form:first").serialize();
	var cachedId=$.getText(url,data);
	downloadExcel(cachedId);
}
</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/notifications.jsp"%>
